<%@page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
<title>Browarex</title>
<style type="text/css">
 <%@ include file="../stylesheets/main.css"%> 
<%@ include file="../stylesheets/header.css"%>
<%@ include file="../stylesheets/footer.css"%>
 <%@ include file="../stylesheets/indexContent.css"%>
<%@ include file="../stylesheets/carousel.css"%> 
</style>
<script language="JavaScript">
	function addDatabase() {
		document.forms['db'].operation.value = 'dataBase';
		document.forms['db'].submit();
		return false;
	}
	function sendAllToJms() {
		document.forms['jms1'].operation.value = 'sendall';
		document.forms['jms1'].submit();
		return false;
	}
	function sendOneToJms() {
		document.forms['jms2'].operation.value = 'sendone';
		document.forms['jms2'].submit();
		return false;
	}
</script>
</head>
<body>

	<div id="left-column-outer">
		<div id="left-column"></div>
	</div>
	<div id="center-column">
		<div class="CenteredContainer">
			<img id="background_noresize" alt="background_noresize"
				src="<%=request.getContextPath()%>/img/background.jpg" />
			<%@ include file="header.jsp"%>
			<div class="ContentShade">
				SYSTEM PRODUKCJI STRONA GLOWNA<br/>
				<form name="db" action="index" method="post">
					<INPUT TYPE="BUTTON" value="Przywróć baze"
						ONCLICK="addDatabase()"> 
						<input type="hidden" name="operation"> ${msg}
				</form> <br/>
				<form name="jms1" action="index" method="post">
					<INPUT TYPE="BUTTON" value="Wyślij wszystko"
						ONCLICK="sendAllToJms()"> <input type="hidden"
						name="operation"> ${msg2}
				</form><br/>
				<form name="jms2" action="index" method="post">
					<INPUT TYPE="BUTTON" value="Wyślij pojedynczy produkt"
						ONCLICK="sendOneToJms()"> <input type="hidden"
						name="operation">${msg3} 
				</form>


			</div>

			<%@ include file="footer.jsp"%>
		</div>
	</div>
	<div id="right-column-outer">
		<div id="right-column"></div>
	</div>
	<%-- 	<a href="productiondetails">SZCZEGOLY PRODUKCJI</a>
${xml}
	<div class="content">
		<%@ include file="header.jsp"%>

	</div>
	<div class="bottom">
		<%@ include file="footer.jsp"%>
	</div> --%>
</body>
</html>